
<script>
import FromShowCard from "@/views/lending/form/FormShowCard.vue";
import TermSearchCard from "@/views/lending/search/TermSearchCard.vue";
export default {
  name: "AppSuperRootRegister",
  components:{TermSearchCard,FromShowCard}
}
</script>
<script setup>
import pubsub from "pubsub-js";
import {onBeforeUnmount, onMounted, onUnmounted, provide, ref, watch} from "vue";
import registerApi from "@/views/lending/Api/lendingRegisterApi";
import lendingRegisterApi from "@/views/lending/Api/lendingRegisterApi";
//cardSearchDate:搜索框内容发送请求
const cardSearchData = ref({})
const cardSearchStatus = ref(false)
provide('mainFormGetAxios', lendingRegisterApi);


//cardSearch：搜索框发布订阅消息
const cardSearch = ()=>{
   pubsub.subscribe("cardSearchTransfer",(msg,data)=>{
    cardSearchData.value = data
  })

}



//axios请求发送
//cardSearchRequest:搜索框内容发送请求至服务器
const cardSearchRequest = ()=>{

}
//
const registerArr = ref([])


//onMounted:发布订阅消息
onMounted(()=>{
  cardSearch()
})
//onUnmounted：卸载订阅消息
onUnmounted(()=>{
})


</script>
<template>
  <TermSearchCard/>
  <FromShowCard/>
<!--  <RegisterAxios/>-->
</template>




<style scoped>

</style>